<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>医院双向转诊平台</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/jquery/jquery.min.js">
</head>

<body class="layui-layout-body">
    <table class="layui-hide" id="Admin"></table>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo">双向转诊平台</div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <img src="/images/Red.png" class="layui-nav-img">
                    <span id="hosName"></span>
                </li>
                <li class="layui-nav-item  logout"><a href="login.html">退出登录</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">

                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item ">

                        <a href="javascript:;">本院概况</a>

                        <dl class="layui-nav-child">
                            <dd><a class="menu" href="javascript:;" url="doctorInfo.html">医生列表</a></dd>
                            <dd><a class="menu" href="javascript:;" url="resourceNumber.html">医疗资源</a></dd>
                            <dd><a class="menu" href="javascript:;" url="patientInfo.html">患者信息</a></dd>


                        </dl>
                    </li>
                </ul>
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item ">
                        <a href="javascript:;">上级医院</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="menu" url="senHos.html">医院列表</a></dd>
                            <dd><a href="javascript:;" class="menu" url="subjectEdit.html">医疗资源</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">社区医院</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="menu" url="lowHos.html">医院列表</a></dd>
                            <dd><a href="javascript:;" class="menu" url="resourceNumberL.html">医院资源</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">转院申请</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="menu" url="Auto.html">申请列表</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">转诊记录</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="menu" url="recordInfo.html">转诊记录列表</a></dd>

                        </dl>
                    </li>

                </ul>
            </div>
        </div>

        <div class="layui-body">

            <div id="main">
                <img src="/images/homePage.png" style="width: 1350px;height: 618px;">
            </div>
        </div>

        <div class="layui-footer">

            <span class="copyright"> Copyright©重庆人文科技学院 计算机工程学院2017级毕业论文设计 2017145087 版权所有</span>
        </div>
    </div>

    <script type="text/javascript" src="/layui/layui.js"></script>
    <script type="text/javascript" src="/jquery/jquery.min.js"></script>
    <script>

        layui.use(['element', 'jquery', 'layer'], function () {
            var element = layui.element;
            var $ = layui.jquery;
            var layer = layui.layer;


            $(".menu").click(function () {
                var url = $(this).attr("url");
                $.get(url, function (result) {
                    $("#main").html(result);
                })
            });



            $(".logout").click(function () {
                window.localStorage.getItem("Hospital") = null;
                window.localStorage.getItem("token") = null
            })


            var s = window.localStorage.getItem("Hospital");
            var hospital = JSON.parse(s);

            $("#hosName").text(hospital.hospitalName);



        });

    </script>
</body>



</body>

</html>